package com.itheima.controller;

import com.itheima.pojo.Hello;
import com.itheima.pojo.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/*
* 启动页
* */
@RestController
public class HelloController {

    @GetMapping("/")
    public Result hello() {
        String text = "SpringBoot服务启动成功!";

        return Result.success(text);
    }
}
